home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8454 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: jhunix.hcf.jhu.edu!hbien
  2. From: hbien@jhunix.hcf.jhu.edu (Harold Bien)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP!! BC++ 4.0 linker problem
  5. Date: 18 Feb 1996 19:19:28 GMT
  6. Organization: HCF - Johns Hopkins University, Baltimore, Maryland, USA
  7. Message-ID: <4g7u40$pm9@news.jhu.edu>
  8. References: <4g6l8k$pv@zippy.cais.net>
  9. NNTP-Posting-Host: 128.220.2.5
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Duffy Men (duffy@cais.cais.com) wrote:
  13. : I has BC++ 4.0 installed on my PC.  Their has a C++ program, it can 
  14. : successfully compile and link under microsoft C/C++ 7.0.  I tried to 
  15. : compile and link this program under BC++ 4.0 and has linker error.
  16.  
  17. :     Linker error: undefined symbol OwlMain (int, char fat*far*) in     
  18. :         library file c:\bc4\lib\owlwj.lib in module winmain
  19.  
  20. : Can anyone tell me why?  Thank you for help.
  21.  
  22.      Make sure that you are not creating an OWL application.  It seems as 
  23. if you have defined a main() function, but no OwlMain() function.  In 
  24. Borland C++, if you select to link in the OWL library, then you should 
  25. define a function OwlMain() instead of main().  I'm not sure, but try 
  26. changing your main() to OwlMain() or do not link in the OWL library.
  27.